interface Props{
    width?:string|number
    height?:string|number
    iconClass:string
}
export default function Iconfont(props:Props) {
  return (
    <svg
    className="icon"
    aria-hidden="true"
    style={{
      width: props.width?`calc(var(--px-1) * ${props.width})`:'',
      height: props.height?`calc(var(--px-1) * ${props.height})`:'',
    }
}
  >
    <use xlinkHref={'#' + props.iconClass} ></use>
  </svg>
  )
}
